﻿
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var( --m-theme-surface);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url() no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

html::-webkit-scrollbar {
    display: none !important;
}

html {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

@media (hover: none) {
    * {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    ::-webkit-scrollbar {
        display: none;
    }
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    margin: 5px 0;
}

@media (hover: hover) {
    ::-webkit-scrollbar {
        width: 13px;
    }

    ::-webkit-scrollbar-thumb {
        border-style: dashed;
        border-color: transparent;
        border-width: 4px;
        background-clip: padding-box;
    }

        ::-webkit-scrollbar-thumb:hover {
            background-clip: initial;
        }
}

::-webkit-scrollbar-track {
    border-radius: 15px;
    margin: 5px 0;
}

::-webkit-scrollbar-thumb {
    margin: 5px 0;
    border-radius: 15px;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(170 168 168)), color-stop(0.72, rgb(170 168 168)), color-stop(0.86, rgb(170 168 168)));
}

.scroll-show {
    -ms-overflow-style: initial !important;
}

    .scroll-show::-webkit-scrollbar {
        display: initial !important;
    }

@-moz-document url-prefix() {
    * {
        scrollbar-width: thin;
    }

    .scroll-show {
        scrollbar-width: thin !important;
    }
}

.my-tab {
    text-transform: none !important;
}

    .my-tab::before {
        opacity: 0 !important;
    }

@media screen and (max-width:600px) {
    .my-tab {
        min-width: unset !important;
    }
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; /*禁止选中内容*/
}

.user-select * {
    -moz-user-select: text;
    -ms-user-select: text;
    -webkit-user-select: text;
    user-select: text;
}

.theme--light.list-item-icon.m-icon {
    color: rgba(0,0,0,.87) !important;
}

@media (hover: none) {
    .d-no-hover-none {
        display: none;
    }
}

@media (hover: hover) {
    .d-hover-none {
        display: none;
    }
}

.diary-card {
    width: 100%;
    margin-bottom: 20px;
    padding: 0px 0px 8px !important;
}

@media screen and (min-width:600px) {
    .diary-card {
        padding: 8px !important;
    }
}

@media screen and (min-width:960px) {
    .diary-card {
        padding-bottom: 16px !important;
    }
}

.diary-card .theme--light.m-divider {
    border-color: rgba(0,0,0,.04);
}

.diary-card-title {
    font-weight: 700 !important;
    padding-bottom: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-list-wrap {
    display: flex;
}

.card-list-main {
    flex-grow: 1;
    min-width: 0px;
}

.card-list-assist-info {
    position: sticky;
    top: 0;
    height: fit-content;
    min-width: 300px;
    margin-left: 16px;
}

.my-scroll-container {
    overflow-y: auto !important;
    position: relative !important;
    height: 100% !important;
}

.my-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
    position: absolute !important;
}

@media screen and (min-width:600px) {
    .my-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media screen and (max-width:600px) {
    .my-container {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative !important;
    overflow: auto !important;
}

.theme--light .my-btn-fab {
    background-color: #fff !important;
}

@media screen and (max-width:600px) {
    .my-btn-fab {
        bottom: calc(1rem + 56px) !important;
        margin-bottom: 8px !important;
    }
}

@media screen and (min-width:600px) {
    .my-btn-fab {
        bottom: 1rem !important;
        right: 1rem !important;
        margin: 8px !important;
    }
}

@media screen and (min-width:600px) {
    .font-weight-bold-desktop {
        font-weight: 700 !important;
    }
}

.my-not-have {
    display: flex !important;
    justify-content: center !important;
    padding-top: 10vh !important;
}

.tag-card, .location-card {
    width: 100%;
}

.my-first-launch-card {
    position: fixed !important;
    width: 100%;
    height: 100%;
    z-index: 99;
}

.theme--light.black-white-btn {
    background-color: #000 !important;
    color: #fff !important;
}

.theme--dark.black-white-btn {
    background-color: #fff !important;
    color: #000 !important;
}

.chevron-down {
    transition: transform 0.75s;
}

.chevron-down-rotate-x {
    transform: rotateX(180deg);
}

.setting-state {
    flex: none !important;
}

.image-card {
    cursor: pointer;
}

.video-card {
    cursor: pointer;
}

/*消息条提示样式，仿照masa旧版中的Toast*/
.m-snack__wrapper {
    border-radius: 8px !important;
}

    .m-snack__wrapper::before {
        background-color: unset !important;
    }

    .m-snack__wrapper .m-alert__icon {
        align-self: unset !important;
    }

@media screen and (max-width:600px) {
    .m-enqueued-snackbars {
        pointer-events: none;
    }

    .m-enqueued-snackbar .m-snack__wrapper {
        border-radius: 24px !important;
        width: initial !important;
        min-width: initial;
    }
}

.m-snack.m-snack--text.m-enqueued-snackbar .m-snack__wrapper.theme--light {
    color: rgba(0,0,0,.87) !important;
}

    .m-snack.m-snack--text.m-enqueued-snackbar .m-snack__wrapper.theme--light .m-snack__action * {
        color: rgba(0,0,0,.87) !important;
    }

.m-snack.m-snack--text.m-enqueued-snackbar .m-snack__wrapper.theme--dark {
    color: rgba(255,255,255,.87) !important;
}

    .m-snack.m-snack--text.m-enqueued-snackbar .m-snack__wrapper.theme--dark .m-snack__action * {
        color: rgba(255,255,255,.87) !important;
    }

.setting-title {
    display: none !important;
    font-weight: 700 !important;
    padding-bottom: 20px;
    padding-left: 4px;
}

.list-item-card {
    margin-bottom: 20px;
}

@media screen and (max-width:600px) {
    .list-item-card .m-list {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .list-item-card .m-list-item:first-child {
        border-top-left-radius: inherit;
        border-top-right-radius: inherit;
    }

        .list-item-card .m-list-item:first-child::before {
            border-top-left-radius: inherit;
            border-top-right-radius: inherit;
        }

    .list-item-card .m-list-item:last-child {
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
    }

        .list-item-card .m-list-item:last-child::before {
            border-bottom-left-radius: inherit;
            border-bottom-right-radius: inherit;
        }

    .list-item-card .dynamic-list-item-collection .m-list-item:nth-last-child(2) {
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
    }

        .list-item-card .dynamic-list-item-collection .m-list-item:nth-last-child(2)::before {
            border-bottom-left-radius: inherit;
            border-bottom-right-radius: inherit;
        }
}

@media screen and (min-width:600px) {
    .setting-title {
        display: block !important;
    }

    .setting-info {
        width: 50%;
    }
}

.theme--light.m-application .my-alert-loading {
    color: #000;
}

.theme--dark.m-application .my-alert-loading {
    color: #fff;
}

.primary-background {
    background-color: var(--m-theme-surface) !important;
}

.theme--light.m-application .second-background {
    background-color: #fff !important;
}

.theme--dark.m-application .second-background {
    background-color: #1e1e1e !important;
}

.m-list--nav .m-list-item, .m-list--nav .m-list-item:before {
    border-radius: 8px;
}

@media screen and (min-width:600px) {
    .m-toolbar__content, .m-toolbar__extension {
        padding: 4px 24px
    }
}

.dynamic-list-item-collection > .m-divider__wrapper:last-child {
    display: none !important;
}

.theme--light.m-input--switch--inset.white--text .theme--light.m-input--switch__track.white--text {
    color: #000 !important;
    opacity: .8;
}

.m-btn--readonly {
    pointer-events: none;
}

.preview-image-dialog--toolbar {
    z-index: 2;
    background-color: transparent !important;
    width: 100%;
}

    .preview-image-dialog--toolbar .m-btn--icon::before {
        background-color: var(--m-theme-surface) !important;
        opacity: 0.5 !important;
    }

.preview-image-dialog--image__wraper {
    position: fixed;
    z-index: 1;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.preview-image-dialog--image {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .preview-image-dialog--image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

wc-waterfall > * {
    transition: all .2s;
}

html.m-overlay-scroll-blocked {
    position: initial;
}

.adaptive-card {
    /*width: 100%;*/
}

.adaptive-card-container {
    display: grid;
    grid-gap: 20px;
}

.adaptive-card-container {
    grid-template-columns: minmax(0, 1fr);
}

@media screen and (min-width: 960px) {
    .adaptive-card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1264px) {
    .adaptive-card-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.user-avatar {
    object-fit: cover;
}
